/******************************************************************************
 * Product: Adempiere ERP & CRM Smart Business Solution                       *
 * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved.                *
 * This program is free software, you can redistribute it and/or modify it    *
 * under the terms version 2 of the GNU General Public License as published   *
 * by the Free Software Foundation. This program is distributed in the hope   *
 * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.           *
 * See the GNU General Public License for more details.                       *
 * You should have received a copy of the GNU General Public License along    *
 * with this program, if not, write to the Free Software Foundation, Inc.,    *
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.                     *
 * For the text or an alternative of this public license, you may reach us    *
 * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA        *
 * or via info@compiere.org or http://www.compiere.org/license.html           *
 *****************************************************************************/
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;

import java.sql.ResultSet;
import java.sql.Timestamp;
import java.util.Properties;
import org.compiere.util.KeyNamePair;

/** Generated Model for MM_Waybill
 *  @author Adempiere (generated) 
 *  @version Release 3.7.0LTS - $Id$ */
public class X_MM_Waybill extends PO implements I_MM_Waybill, I_Persistent 
{

	/**
	 *
	 */
	private static final long serialVersionUID = 20130724L;

    /** the default Constructor */
    public X_MM_Waybill(Properties ctx)
    { 
      super (ctx, null, null);
    } 

    /** Standard Constructor */
    public X_MM_Waybill (Properties ctx, int MM_Waybill_ID, String trxName)
    {
      super (ctx, MM_Waybill_ID, trxName);
      /** if (MM_Waybill_ID == 0)
        {
			setDocumentNo (null);
			setMM_DateOf_Issue (new Timestamp( System.currentTimeMillis() ));
// @#Date@
			setMM_Dispatcher_ID (0);
			setMM_Driver_ID (0);
			setMM_OperationMode (null);
			setMM_Waybill_ID (0);
			setMM_WaybillType (null);
        } */
    }

    /** Load Constructor */
    public X_MM_Waybill (Properties ctx, ResultSet rs, String trxName)
    {
      super (ctx, rs, trxName);
    }

    /** AccessLevel
      * @return 3 - Client - Org 
      */
    protected int get_AccessLevel()
    {
      return accessLevel.intValue();
    }

    /** Load Meta Data */
    protected POInfo initPO (Properties ctx)
    {
      POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
      return poi;
    }

    public String toString()
    {
      StringBuffer sb = new StringBuffer ("X_MM_Waybill[")
        .append(get_ID()).append("]");
      return sb.toString();
    }

	/** Set Document No.
		@param DocumentNo 
		Document sequence number of the document
	  */
	public void setDocumentNo (String DocumentNo)
	{
		set_ValueNoCheck (COLUMNNAME_DocumentNo, DocumentNo);
	}

	/** Get Document No.
		@return Document sequence number of the document
	  */
	public String getDocumentNo () 
	{
		return (String)get_Value(COLUMNNAME_DocumentNo);
	}

    /** Get Record ID/ColumnName
        @return ID/ColumnName pair
      */
    public KeyNamePair getKeyNamePair() 
    {
        return new KeyNamePair(get_ID(), getDocumentNo());
    }

	public org.compiere.model.I_C_BPartner getMM_AccompanyingPersons() throws RuntimeException
    {
		return (org.compiere.model.I_C_BPartner)MTable.get(getCtx(), org.compiere.model.I_C_BPartner.Table_Name)
			.getPO(getMM_AccompanyingPersons_ID(), get_TrxName());	}

	/** Set Accompanying Persons.
		@param MM_AccompanyingPersons_ID Accompanying Persons	  */
	public void setMM_AccompanyingPersons_ID (int MM_AccompanyingPersons_ID)
	{
		if (MM_AccompanyingPersons_ID < 1) 
			set_Value (COLUMNNAME_MM_AccompanyingPersons_ID, null);
		else 
			set_Value (COLUMNNAME_MM_AccompanyingPersons_ID, Integer.valueOf(MM_AccompanyingPersons_ID));
	}

	/** Get Accompanying Persons.
		@return Accompanying Persons	  */
	public int getMM_AccompanyingPersons_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_MM_AccompanyingPersons_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Accompanying person table number .
		@param MM_AccompanyingPersons_TableNo Accompanying person table number 	  */
	public void setMM_AccompanyingPersons_TableNo (int MM_AccompanyingPersons_TableNo)
	{
		throw new IllegalArgumentException ("MM_AccompanyingPersons_TableNo is virtual column");	}

	/** Get Accompanying person table number .
		@return Accompanying person table number 	  */
	public int getMM_AccompanyingPersons_TableNo () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_MM_AccompanyingPersons_TableNo);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Consumption rate coefficient of variation.
		@param MM_ConsumpRate_COV Consumption rate coefficient of variation	  */
	public void setMM_ConsumpRate_COV (int MM_ConsumpRate_COV)
	{
		set_Value (COLUMNNAME_MM_ConsumpRate_COV, Integer.valueOf(MM_ConsumpRate_COV));
	}

	/** Get Consumption rate coefficient of variation.
		@return Consumption rate coefficient of variation	  */
	public int getMM_ConsumpRate_COV () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_MM_ConsumpRate_COV);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Consumption rate 1 hour of engine.
		@param MM_ConsumpRate_Engine1h Consumption rate 1 hour of engine	  */
	public void setMM_ConsumpRate_Engine1h (int MM_ConsumpRate_Engine1h)
	{
		set_Value (COLUMNNAME_MM_ConsumpRate_Engine1h, Integer.valueOf(MM_ConsumpRate_Engine1h));
	}

	/** Get Consumption rate 1 hour of engine.
		@return Consumption rate 1 hour of engine	  */
	public int getMM_ConsumpRate_Engine1h () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_MM_ConsumpRate_Engine1h);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_M_Product getMM_ConsumpRate_FuelMark() throws RuntimeException
    {
		return (org.compiere.model.I_M_Product)MTable.get(getCtx(), org.compiere.model.I_M_Product.Table_Name)
			.getPO(getMM_ConsumpRate_FuelMark_ID(), get_TrxName());	}

	/** Set Consumption rate of fuel mark.
		@param MM_ConsumpRate_FuelMark_ID Consumption rate of fuel mark	  */
	public void setMM_ConsumpRate_FuelMark_ID (int MM_ConsumpRate_FuelMark_ID)
	{
		if (MM_ConsumpRate_FuelMark_ID < 1) 
			set_Value (COLUMNNAME_MM_ConsumpRate_FuelMark_ID, null);
		else 
			set_Value (COLUMNNAME_MM_ConsumpRate_FuelMark_ID, Integer.valueOf(MM_ConsumpRate_FuelMark_ID));
	}

	/** Get Consumption rate of fuel mark.
		@return Consumption rate of fuel mark	  */
	public int getMM_ConsumpRate_FuelMark_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_MM_ConsumpRate_FuelMark_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Consumption rate vehicle 100 km.
		@param MM_ConsumpRate_Vehicle100km Consumption rate vehicle 100 km	  */
	public void setMM_ConsumpRate_Vehicle100km (int MM_ConsumpRate_Vehicle100km)
	{
		set_Value (COLUMNNAME_MM_ConsumpRate_Vehicle100km, Integer.valueOf(MM_ConsumpRate_Vehicle100km));
	}

	/** Get Consumption rate vehicle 100 km.
		@return Consumption rate vehicle 100 km	  */
	public int getMM_ConsumpRate_Vehicle100km () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_MM_ConsumpRate_Vehicle100km);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Date Of Issue.
		@param MM_DateOf_Issue Date Of Issue	  */
	public void setMM_DateOf_Issue (Timestamp MM_DateOf_Issue)
	{
		set_ValueNoCheck (COLUMNNAME_MM_DateOf_Issue, MM_DateOf_Issue);
	}

	/** Get Date Of Issue.
		@return Date Of Issue	  */
	public Timestamp getMM_DateOf_Issue () 
	{
		return (Timestamp)get_Value(COLUMNNAME_MM_DateOf_Issue);
	}

	public org.compiere.model.I_C_BPartner getMM_Dispatcher() throws RuntimeException
    {
		return (org.compiere.model.I_C_BPartner)MTable.get(getCtx(), org.compiere.model.I_C_BPartner.Table_Name)
			.getPO(getMM_Dispatcher_ID(), get_TrxName());	}

	/** Set Dispatcher.
		@param MM_Dispatcher_ID Dispatcher	  */
	public void setMM_Dispatcher_ID (int MM_Dispatcher_ID)
	{
		if (MM_Dispatcher_ID < 1) 
			set_Value (COLUMNNAME_MM_Dispatcher_ID, null);
		else 
			set_Value (COLUMNNAME_MM_Dispatcher_ID, Integer.valueOf(MM_Dispatcher_ID));
	}

	/** Get Dispatcher.
		@return Dispatcher	  */
	public int getMM_Dispatcher_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_MM_Dispatcher_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_C_BPartner getMM_Driver() throws RuntimeException
    {
		return (org.compiere.model.I_C_BPartner)MTable.get(getCtx(), org.compiere.model.I_C_BPartner.Table_Name)
			.getPO(getMM_Driver_ID(), get_TrxName());	}

	/** Set Driver.
		@param MM_Driver_ID Driver	  */
	public void setMM_Driver_ID (int MM_Driver_ID)
	{
		if (MM_Driver_ID < 1) 
			set_Value (COLUMNNAME_MM_Driver_ID, null);
		else 
			set_Value (COLUMNNAME_MM_Driver_ID, Integer.valueOf(MM_Driver_ID));
	}

	/** Get Driver.
		@return Driver	  */
	public int getMM_Driver_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_MM_Driver_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Driver table number.
		@param MM_Driver_TableNo Driver table number	  */
	public void setMM_Driver_TableNo (int MM_Driver_TableNo)
	{
		throw new IllegalArgumentException ("MM_Driver_TableNo is virtual column");	}

	/** Get Driver table number.
		@return Driver table number	  */
	public int getMM_Driver_TableNo () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_MM_Driver_TableNo);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Fuel issue.
		@param MM_Fuel_Issue Fuel issue	  */
	public void setMM_Fuel_Issue (int MM_Fuel_Issue)
	{
		set_Value (COLUMNNAME_MM_Fuel_Issue, Integer.valueOf(MM_Fuel_Issue));
	}

	/** Get Fuel issue.
		@return Fuel issue	  */
	public int getMM_Fuel_Issue () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_MM_Fuel_Issue);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Fuel issued.
		@param MM_Fuel_Issued Fuel issued	  */
	public void setMM_Fuel_Issued (int MM_Fuel_Issued)
	{
		set_Value (COLUMNNAME_MM_Fuel_Issued, Integer.valueOf(MM_Fuel_Issued));
	}

	/** Get Fuel issued.
		@return Fuel issued	  */
	public int getMM_Fuel_Issued () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_MM_Fuel_Issued);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_M_Product getMM_FuelMark() throws RuntimeException
    {
		return (org.compiere.model.I_M_Product)MTable.get(getCtx(), org.compiere.model.I_M_Product.Table_Name)
			.getPO(getMM_FuelMark_ID(), get_TrxName());	}

	/** Set Fuel mark consumption.
		@param MM_FuelMark_ID Fuel mark consumption	  */
	public void setMM_FuelMark_ID (int MM_FuelMark_ID)
	{
		if (MM_FuelMark_ID < 1) 
			set_Value (COLUMNNAME_MM_FuelMark_ID, null);
		else 
			set_Value (COLUMNNAME_MM_FuelMark_ID, Integer.valueOf(MM_FuelMark_ID));
	}

	/** Get Fuel mark consumption.
		@return Fuel mark consumption	  */
	public int getMM_FuelMark_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_MM_FuelMark_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Fuel remainder check-out.
		@param MM_FuelRemainder_Checkout Fuel remainder check-out	  */
	public void setMM_FuelRemainder_Checkout (int MM_FuelRemainder_Checkout)
	{
		set_Value (COLUMNNAME_MM_FuelRemainder_Checkout, Integer.valueOf(MM_FuelRemainder_Checkout));
	}

	/** Get Fuel remainder check-out.
		@return Fuel remainder check-out	  */
	public int getMM_FuelRemainder_Checkout () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_MM_FuelRemainder_Checkout);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Fuel remainder return.
		@param MM_FuelRemainder_Return Fuel remainder return	  */
	public void setMM_FuelRemainder_Return (int MM_FuelRemainder_Return)
	{
		set_Value (COLUMNNAME_MM_FuelRemainder_Return, Integer.valueOf(MM_FuelRemainder_Return));
	}

	/** Get Fuel remainder return.
		@return Fuel remainder return	  */
	public int getMM_FuelRemainder_Return () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_MM_FuelRemainder_Return);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Operation code.
		@param MM_OperationCode Operation code	  */
	public void setMM_OperationCode (int MM_OperationCode)
	{
		set_Value (COLUMNNAME_MM_OperationCode, Integer.valueOf(MM_OperationCode));
	}

	/** Get Operation code.
		@return Operation code	  */
	public int getMM_OperationCode () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_MM_OperationCode);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** MM_OperationMode AD_Reference_ID=1000147 */
	public static final int MM_OPERATIONMODE_AD_Reference_ID=1000147;
	/** 12 hour = 12 hour */
	public static final String MM_OPERATIONMODE_12Hour = "12 hour";
	/** 8 Hour = 8 hour */
	public static final String MM_OPERATIONMODE_8Hour = "8 hour";
	/** Shift = Shift */
	public static final String MM_OPERATIONMODE_Shift = "Shift";
	/** Set Operation mode.
		@param MM_OperationMode Operation mode	  */
	public void setMM_OperationMode (String MM_OperationMode)
	{

		set_Value (COLUMNNAME_MM_OperationMode, MM_OperationMode);
	}

	/** Get Operation mode.
		@return Operation mode	  */
	public String getMM_OperationMode () 
	{
		return (String)get_Value(COLUMNNAME_MM_OperationMode);
	}

	/** Set Repair on way.
		@param MM_RepairOn_Way Repair on way	  */
	public void setMM_RepairOn_Way (String MM_RepairOn_Way)
	{
		set_Value (COLUMNNAME_MM_RepairOn_Way, MM_RepairOn_Way);
	}

	/** Get Repair on way.
		@return Repair on way	  */
	public String getMM_RepairOn_Way () 
	{
		return (String)get_Value(COLUMNNAME_MM_RepairOn_Way);
	}

	/** MM_Shift AD_Reference_ID=1000148 */
	public static final int MM_SHIFT_AD_Reference_ID=1000148;
	/** Day = Day */
	public static final String MM_SHIFT_Day = "Day";
	/** Night = Night */
	public static final String MM_SHIFT_Night = "Night";
	/** Set Shift.
		@param MM_Shift Shift	  */
	public void setMM_Shift (String MM_Shift)
	{

		set_Value (COLUMNNAME_MM_Shift, MM_Shift);
	}

	/** Get Shift.
		@return Shift	  */
	public String getMM_Shift () 
	{
		return (String)get_Value(COLUMNNAME_MM_Shift);
	}

	/** Set Speedometer checkout.
		@param MM_Speedometer_Checkout Speedometer checkout	  */
	public void setMM_Speedometer_Checkout (int MM_Speedometer_Checkout)
	{
		set_Value (COLUMNNAME_MM_Speedometer_Checkout, Integer.valueOf(MM_Speedometer_Checkout));
	}

	/** Get Speedometer checkout.
		@return Speedometer checkout	  */
	public int getMM_Speedometer_Checkout () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_MM_Speedometer_Checkout);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Speedometer return.
		@param MM_Speedometer_Return Speedometer return	  */
	public void setMM_Speedometer_Return (int MM_Speedometer_Return)
	{
		set_Value (COLUMNNAME_MM_Speedometer_Return, Integer.valueOf(MM_Speedometer_Return));
	}

	/** Get Speedometer return.
		@return Speedometer return	  */
	public int getMM_Speedometer_Return () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_MM_Speedometer_Return);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Time on fact checkout.
		@param MM_TimeOnFact_Checkout Time on fact checkout	  */
	public void setMM_TimeOnFact_Checkout (Timestamp MM_TimeOnFact_Checkout)
	{
		set_Value (COLUMNNAME_MM_TimeOnFact_Checkout, MM_TimeOnFact_Checkout);
	}

	/** Get Time on fact checkout.
		@return Time on fact checkout	  */
	public Timestamp getMM_TimeOnFact_Checkout () 
	{
		return (Timestamp)get_Value(COLUMNNAME_MM_TimeOnFact_Checkout);
	}

	/** Set Time on fact return.
		@param MM_TimeOnFact_Return Time on fact return	  */
	public void setMM_TimeOnFact_Return (Timestamp MM_TimeOnFact_Return)
	{
		set_Value (COLUMNNAME_MM_TimeOnFact_Return, MM_TimeOnFact_Return);
	}

	/** Get Time on fact return.
		@return Time on fact return	  */
	public Timestamp getMM_TimeOnFact_Return () 
	{
		return (Timestamp)get_Value(COLUMNNAME_MM_TimeOnFact_Return);
	}

	/** Set Time on schedule checkout.
		@param MM_TimeOnSched_Checkout Time on schedule checkout	  */
	public void setMM_TimeOnSched_Checkout (Timestamp MM_TimeOnSched_Checkout)
	{
		set_Value (COLUMNNAME_MM_TimeOnSched_Checkout, MM_TimeOnSched_Checkout);
	}

	/** Get Time on schedule checkout.
		@return Time on schedule checkout	  */
	public Timestamp getMM_TimeOnSched_Checkout () 
	{
		return (Timestamp)get_Value(COLUMNNAME_MM_TimeOnSched_Checkout);
	}

	/** Set Time on schedule return.
		@param MM_TimeOnSched_Return Time on schedule return	  */
	public void setMM_TimeOnSched_Return (Timestamp MM_TimeOnSched_Return)
	{
		set_Value (COLUMNNAME_MM_TimeOnSched_Return, MM_TimeOnSched_Return);
	}

	/** Get Time on schedule return.
		@return Time on schedule return	  */
	public Timestamp getMM_TimeOnSched_Return () 
	{
		return (Timestamp)get_Value(COLUMNNAME_MM_TimeOnSched_Return);
	}

	/** Set Trailer garage number.
		@param MM_Trailer_GarageNo Trailer garage number	  */
	public void setMM_Trailer_GarageNo (int MM_Trailer_GarageNo)
	{
		set_Value (COLUMNNAME_MM_Trailer_GarageNo, Integer.valueOf(MM_Trailer_GarageNo));
	}

	/** Get Trailer garage number.
		@return Trailer garage number	  */
	public int getMM_Trailer_GarageNo () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_MM_Trailer_GarageNo);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_A_Asset getMM_Trailer() throws RuntimeException
    {
		return (org.compiere.model.I_A_Asset)MTable.get(getCtx(), org.compiere.model.I_A_Asset.Table_Name)
			.getPO(getMM_Trailer_ID(), get_TrxName());	}

	/** Set Trailer.
		@param MM_Trailer_ID Trailer	  */
	public void setMM_Trailer_ID (int MM_Trailer_ID)
	{
		if (MM_Trailer_ID < 1) 
			set_Value (COLUMNNAME_MM_Trailer_ID, null);
		else 
			set_Value (COLUMNNAME_MM_Trailer_ID, Integer.valueOf(MM_Trailer_ID));
	}

	/** Get Trailer.
		@return Trailer	  */
	public int getMM_Trailer_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_MM_Trailer_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Trailer registration number.
		@param MM_Trailer_RegNo Trailer registration number	  */
	public void setMM_Trailer_RegNo (String MM_Trailer_RegNo)
	{
		set_Value (COLUMNNAME_MM_Trailer_RegNo, MM_Trailer_RegNo);
	}

	/** Get Trailer registration number.
		@return Trailer registration number	  */
	public String getMM_Trailer_RegNo () 
	{
		return (String)get_Value(COLUMNNAME_MM_Trailer_RegNo);
	}

	/** Set Vehicle brigade number.
		@param MM_Vehicle_BrigadeNo Vehicle brigade number	  */
	public void setMM_Vehicle_BrigadeNo (int MM_Vehicle_BrigadeNo)
	{
		set_Value (COLUMNNAME_MM_Vehicle_BrigadeNo, Integer.valueOf(MM_Vehicle_BrigadeNo));
	}

	/** Get Vehicle brigade number.
		@return Vehicle brigade number	  */
	public int getMM_Vehicle_BrigadeNo () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_MM_Vehicle_BrigadeNo);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Vehicle column number.
		@param MM_Vehicle_ColumnNo Vehicle column number	  */
	public void setMM_Vehicle_ColumnNo (int MM_Vehicle_ColumnNo)
	{
		set_Value (COLUMNNAME_MM_Vehicle_ColumnNo, Integer.valueOf(MM_Vehicle_ColumnNo));
	}

	/** Get Vehicle column number.
		@return Vehicle column number	  */
	public int getMM_Vehicle_ColumnNo () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_MM_Vehicle_ColumnNo);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Vehicle garage number.
		@param MM_Vehicle_GarageNo Vehicle garage number	  */
	public void setMM_Vehicle_GarageNo (int MM_Vehicle_GarageNo)
	{
		set_Value (COLUMNNAME_MM_Vehicle_GarageNo, Integer.valueOf(MM_Vehicle_GarageNo));
	}

	/** Get Vehicle garage number.
		@return Vehicle garage number	  */
	public int getMM_Vehicle_GarageNo () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_MM_Vehicle_GarageNo);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_A_Asset getMM_Vehicle() throws RuntimeException
    {
		return (org.compiere.model.I_A_Asset)MTable.get(getCtx(), org.compiere.model.I_A_Asset.Table_Name)
			.getPO(getMM_Vehicle_ID(), get_TrxName());	}

	/** Set Vehicle.
		@param MM_Vehicle_ID Vehicle	  */
	public void setMM_Vehicle_ID (int MM_Vehicle_ID)
	{
		if (MM_Vehicle_ID < 1) 
			set_Value (COLUMNNAME_MM_Vehicle_ID, null);
		else 
			set_Value (COLUMNNAME_MM_Vehicle_ID, Integer.valueOf(MM_Vehicle_ID));
	}

	/** Get Vehicle.
		@return Vehicle	  */
	public int getMM_Vehicle_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_MM_Vehicle_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Vehicle registration number.
		@param MM_Vehicle_RegNo Vehicle registration number	  */
	public void setMM_Vehicle_RegNo (String MM_Vehicle_RegNo)
	{
		set_Value (COLUMNNAME_MM_Vehicle_RegNo, MM_Vehicle_RegNo);
	}

	/** Get Vehicle registration number.
		@return Vehicle registration number	  */
	public String getMM_Vehicle_RegNo () 
	{
		return (String)get_Value(COLUMNNAME_MM_Vehicle_RegNo);
	}

	/** Set Waybill ID.
		@param MM_Waybill_ID Waybill ID	  */
	public void setMM_Waybill_ID (int MM_Waybill_ID)
	{
		if (MM_Waybill_ID < 1) 
			set_ValueNoCheck (COLUMNNAME_MM_Waybill_ID, null);
		else 
			set_ValueNoCheck (COLUMNNAME_MM_Waybill_ID, Integer.valueOf(MM_Waybill_ID));
	}

	/** Get Waybill ID.
		@return Waybill ID	  */
	public int getMM_Waybill_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_MM_Waybill_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** MM_WaybillType AD_Reference_ID=1000140 */
	public static final int MM_WAYBILLTYPE_AD_Reference_ID=1000140;
	/** Bus = Bus */
	public static final String MM_WAYBILLTYPE_Bus = "Bus";
	/** Car = Car */
	public static final String MM_WAYBILLTYPE_Car = "Car";
	/** Truck = Truck */
	public static final String MM_WAYBILLTYPE_Truck = "Truck";
	/** Set Waybill type.
		@param MM_WaybillType Waybill type	  */
	public void setMM_WaybillType (String MM_WaybillType)
	{

		set_ValueNoCheck (COLUMNNAME_MM_WaybillType, MM_WaybillType);
	}

	/** Get Waybill type.
		@return Waybill type	  */
	public String getMM_WaybillType () 
	{
		return (String)get_Value(COLUMNNAME_MM_WaybillType);
	}
}